/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PaquetesDePrueba;

import Hndlr.HndlrAdmin;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
import Controladores.*;

/**
 *
 * @author Sebas
 */
public class CtrlInicioSesionTest {
    
    public CtrlInicioSesionTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of logout method, of class CtrlInicioSesion.
     */
    @Test
    public void testLogout() {
        System.out.println("logout");
        CtrlInicioSesion instance = new CtrlInicioSesion();
        instance.logout();
        HndlrAdmin hAdm = HndlrAdmin.getInstance();
        assertTrue(hAdm.getMailAdmin().equals(""));
        // TODO review the generated test code and remove the default call to fail.
    }

    /**
     * Test of login method, of class CtrlInicioSesion.
     */
    @Test
    public void testLogin() {
        System.out.println("login");
        String email = "";
        String password = "";
        CtrlInicioSesion instance = new CtrlInicioSesion();
        boolean expResult = false;
        boolean result = instance.login(email, password);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
    }
}
